﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.VideoDownload
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.VideoDownload;

    public class map_VideoCamera : EntityMapping<VideoCamera>
    {
        public map_VideoCamera()
        {
            ManyToOne(x => x.Room, map =>
            {
                map.Column("RoomId");
            });

            ManyToOne(x => x.Server, map =>
            {
                map.Column("ServerId");
            });

            Property(x => x.Name, map =>
            {
                map.Length(200);
            });

            Property(x => x.Channel, map =>
            {
                map.Length(20);
            });
        }
    }
}
